import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'

export default defineConfig({
    plugins: [uni()],
    server: {
      proxy: {
        "/prefix": {
          target: "https://his.ytsq120.cn/hlwyy_test/api", // 目标接口地址
          changeOrigin: true,
          rewrite: path => path.replace(/^\/prefix/, '')
        }
      }
    }
})